/* Copyright 2011 Elektrobit Wireless Communications Oy (EB)


  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 2 as 
  published by the Free Software Foundation.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


 *All rights reserved 
 *Version:Elektrobit_Qt_1.0.0_20110305 */


import Qt 4.7
import "script/script.js" as Script
import "qmlItem" 1.0

Item {
    id: screen
    width: 640; height: 360;

    Image {
        anchors.fill: parent;
        source: Script.sysPath("images/sys/back_img.png")

        Image
        {
            id: imageBill
            property bool pressed: false
            width: 208; height: 306
            x: 29; y: 25
            source: Script.sysPath(getBillImagePath())
        }
        Image
        {
            id: imageDetail
            property bool pressed: false
            width: 357; height: 245
            x: 260; y: 20
            source: Script.sysPath(getDetailImagePath())
        }
    }

    Image
    {
        id: imageReturn
        property bool pressed: false
        x: 400; y: 280
        width: 56; height: 56
        source: pressed ? Script.sysPath("images/sys/movie_detail_btn_back.png") :
                Script.sysPath("images/sys/movie_detail_btn_back.png")

        MouseArea {
            anchors.fill: parent
                onPressed: {imageReturn.pressed = true; }
            onReleased: {imageReturn.pressed = false; onIconClick("return")}
        }
    }

    Image
    {
        id: imagePlayer
        property bool pressed: false
        x: 450; y: 280
        width: 56; height: 56

        source: pressed ? Script.sysPath("images/sys/movie_detail_btn_play.png") :
                Script.sysPath("images/sys/movie_detail_btn_play.png")

        MouseArea {
            anchors.fill: parent
                onPressed: {imagePlayer.pressed = true; }
            onReleased: {imagePlayer.pressed = false; onIconClick("play")}
        }
    }
}

